<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OrangeCNC - ARISC firmware documentation: mod_stepgen.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OrangeCNC - ARISC firmware documentation
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('mod__stepgen_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">mod_stepgen.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="mod__stepgen_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef _MOD_STEPGEN_H</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define _MOD_STEPGEN_H</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mod__msg_8h.html">mod_msg.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mod__timer_8h.html">mod_timer.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#add11bd1a09b296d9990e6dfbca026b2d">   17</a></span>&#160;<span class="preprocessor">#define STEPGEN_CH_CNT          24  </span></div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a1b6853f8439c3d10f952fe92e18100e6">   18</a></span>&#160;<span class="preprocessor">#define STEPGEN_FIFO_SIZE       4   </span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#ae06fdfb80d84bd2a8eb2a2dd6f6dd94b">   19</a></span>&#160;<span class="preprocessor">#define STEPGEN_MSG_BUF_LEN     MSG_LEN</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2dadeb64ac38a4aa0b61f5a30b0ce10b248">   23</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2dadeb64ac38a4aa0b61f5a30b0ce10b248">STEPGEN_MSG_PIN_SETUP</a> = 0x20,</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da819acf215bd47a2a09534f42c5134eec">   24</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da819acf215bd47a2a09534f42c5134eec">STEPGEN_MSG_TASK_ADD</a>,</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da1277c6bab97058bd73148093308e7531">   25</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da1277c6bab97058bd73148093308e7531">STEPGEN_MSG_TASK_UPDATE</a>,</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da3004a9efaad2a6f80c34e5f9a1f4bca1">   26</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da3004a9efaad2a6f80c34e5f9a1f4bca1">STEPGEN_MSG_ABORT</a>,</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daf6cd7c98ac1fb53dc5d5be7f3a78317d">   27</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daf6cd7c98ac1fb53dc5d5be7f3a78317d">STEPGEN_MSG_POS_GET</a>,</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daadd2b95fe787b4566197d0077ce8971b">   28</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daadd2b95fe787b4566197d0077ce8971b">STEPGEN_MSG_POS_SET</a>,</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da4f132c3555be9287960b2ca72552ca11">   29</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da4f132c3555be9287960b2ca72552ca11">STEPGEN_MSG_WATCHDOG_SETUP</a>,</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da27323544b34707df604e85d578e67790">   30</a></span>&#160;    <a class="code" href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da27323544b34707df604e85d578e67790">STEPGEN_MSG_CNT</a></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;};</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html">   36</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html#a1d127017fb298b889f4ba24752d08b8e">   38</a></span>&#160;    uint8_t     <a class="code" href="structstepgen__fifo__slot__t.html#a1d127017fb298b889f4ba24752d08b8e">type</a>; <span class="comment">// 0:step, 1:dir</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html#af990eddaa908d8e2a6b5567989eb2e58">   39</a></span>&#160;    uint32_t    <a class="code" href="structstepgen__fifo__slot__t.html#af990eddaa908d8e2a6b5567989eb2e58">pulses</a>; <span class="comment">// 0:empty slot, !0:used</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html#a20e782ffc21797e1e912ed0a98ada5c8">   40</a></span>&#160;    uint32_t    <a class="code" href="structstepgen__fifo__slot__t.html#a20e782ffc21797e1e912ed0a98ada5c8">low_ticks</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html#a77a0732fe2b2951b46e9135073110348">   41</a></span>&#160;    uint32_t    <a class="code" href="structstepgen__fifo__slot__t.html#a77a0732fe2b2951b46e9135073110348">high_ticks</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structstepgen__fifo__slot__t.html#a2c38447b8253c8df855e3131c95941a1">   42</a></span>&#160;    uint64_t    <a class="code" href="structstepgen__fifo__slot__t.html#a2c38447b8253c8df855e3131c95941a1">tick</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;} <a class="code" href="structstepgen__fifo__slot__t.html">stepgen_fifo_slot_t</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html">   46</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#afacbb1e7be774a38535fef6b05bdb1ec">   48</a></span>&#160;    uint8_t     pin_state[2];</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#aefa52a41eae915213ccbcdd1f5333383">   49</a></span>&#160;    uint8_t     pin_port[2];</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#ad615f8840f119c785df1094bbd25e8bf">   50</a></span>&#160;    uint32_t    pin_mask[2];</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a1cc3cfde13756acb73202c20d1a00737">   51</a></span>&#160;    uint32_t    pin_mask_not[2];</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a44c8a5c9b0e81aed5d9c9041e64a04b9">   52</a></span>&#160;    uint32_t    pin_invert[2];</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#ad5570160009847b90e3bf8e14d303b0a">   54</a></span>&#160;    int32_t     <a class="code" href="structstepgen__ch__t.html#ad5570160009847b90e3bf8e14d303b0a">pos</a>; <span class="comment">// in pulses</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#af54eeb7ea4d11bcc974ca9d981e7a331">   56</a></span>&#160;    uint8_t     <a class="code" href="structstepgen__ch__t.html#af54eeb7ea4d11bcc974ca9d981e7a331">abort</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a4d1dc7cb0fb7365b938b0b4083850610">   57</a></span>&#160;    uint64_t    <a class="code" href="structstepgen__ch__t.html#a4d1dc7cb0fb7365b938b0b4083850610">abort_tick</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a75b4ea125202228ed86690ae46a778c6">   59</a></span>&#160;    uint8_t                 <a class="code" href="structstepgen__ch__t.html#a75b4ea125202228ed86690ae46a778c6">task_infinite</a>;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a07968236195cd41e44af78d15a2449e8">   60</a></span>&#160;    uint8_t                 <a class="code" href="structstepgen__ch__t.html#a07968236195cd41e44af78d15a2449e8">task_slot</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#ae3006897902ef1979438ea8f127b8188">   61</a></span>&#160;    uint64_t                <a class="code" href="structstepgen__ch__t.html#ae3006897902ef1979438ea8f127b8188">task_tick</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structstepgen__ch__t.html#a822b9333562f0a26569f16564a0b0ab6">   62</a></span>&#160;    <a class="code" href="structstepgen__fifo__slot__t.html">stepgen_fifo_slot_t</a>     tasks[<a class="code" href="mod__stepgen_8h.html#a1b6853f8439c3d10f952fe92e18100e6">STEPGEN_FIFO_SIZE</a>];</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;} <a class="code" href="structstepgen__ch__t.html">stepgen_ch_t</a>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#a328fc56e89d3be7b314f773c35206ef3">stepgen_module_init</a>();</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#ad07cf3fa21b467202e728256fabe57c7">stepgen_module_base_thread</a>();</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#a76c18f23772eec1d9d3fb9dd2119487c">stepgen_pin_setup</a>(uint8_t c, uint8_t type, uint8_t port, uint8_t pin, uint8_t invert);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#a52dff69cf40ad614a0997cb69294a3f3">stepgen_task_add</a>(uint8_t c, uint8_t type, uint32_t pulses, uint32_t pin_low_time, uint32_t pin_high_time);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#a1987baf2be40fdf44f84356533516c17">stepgen_abort</a>(uint8_t c, uint8_t all);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;int32_t <a class="code" href="mod__stepgen_8h.html#af9b0241e054c570a042b70b7a8f2682c">stepgen_pos_get</a>(uint8_t c);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#a233182090807dad5573d8f3e0654fdd5">stepgen_pos_set</a>(uint8_t c, int32_t pos);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keywordtype">void</span> <a class="code" href="mod__stepgen_8h.html#afddac7f2ba8476a7d153ea4697c3b9df">stepgen_watchdog_setup</a>(uint8_t enable, uint32_t time);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;int8_t <span class="keyword">volatile</span> <a class="code" href="mod__stepgen_8h.html#aea55c383984191341be13404a7e73bb7">stepgen_msg_recv</a>(uint8_t type, uint8_t * msg, uint8_t length);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="mod__stepgen_8h_html_a233182090807dad5573d8f3e0654fdd5"><div class="ttname"><a href="mod__stepgen_8h.html#a233182090807dad5573d8f3e0654fdd5">stepgen_pos_set</a></div><div class="ttdeci">void stepgen_pos_set(uint8_t c, int32_t pos)</div><div class="ttdoc">set channel steps position </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:348</div></div>
<div class="ttc" id="mod__stepgen_8h_html_af9b0241e054c570a042b70b7a8f2682c"><div class="ttname"><a href="mod__stepgen_8h.html#af9b0241e054c570a042b70b7a8f2682c">stepgen_pos_get</a></div><div class="ttdeci">int32_t stepgen_pos_get(uint8_t c)</div><div class="ttdoc">set channel steps position </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:337</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2daf6cd7c98ac1fb53dc5d5be7f3a78317d"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daf6cd7c98ac1fb53dc5d5be7f3a78317d">STEPGEN_MSG_POS_GET</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:27</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html_a1d127017fb298b889f4ba24752d08b8e"><div class="ttname"><a href="structstepgen__fifo__slot__t.html#a1d127017fb298b889f4ba24752d08b8e">stepgen_fifo_slot_t::type</a></div><div class="ttdeci">uint8_t type</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:38</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2da819acf215bd47a2a09534f42c5134eec"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da819acf215bd47a2a09534f42c5134eec">STEPGEN_MSG_TASK_ADD</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:24</div></div>
<div class="ttc" id="mod__stepgen_8h_html_afddac7f2ba8476a7d153ea4697c3b9df"><div class="ttname"><a href="mod__stepgen_8h.html#afddac7f2ba8476a7d153ea4697c3b9df">stepgen_watchdog_setup</a></div><div class="ttdeci">void stepgen_watchdog_setup(uint8_t enable, uint32_t time)</div><div class="ttdoc">enable/disable abort all watchdog </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:362</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a52dff69cf40ad614a0997cb69294a3f3"><div class="ttname"><a href="mod__stepgen_8h.html#a52dff69cf40ad614a0997cb69294a3f3">stepgen_task_add</a></div><div class="ttdeci">void stepgen_task_add(uint8_t c, uint8_t type, uint32_t pulses, uint32_t pin_low_time, uint32_t pin_high_time)</div><div class="ttdoc">add a new task for the selected channel </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:246</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2da3004a9efaad2a6f80c34e5f9a1f4bca1"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da3004a9efaad2a6f80c34e5f9a1f4bca1">STEPGEN_MSG_ABORT</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:26</div></div>
<div class="ttc" id="structstepgen__ch__t_html_ae3006897902ef1979438ea8f127b8188"><div class="ttname"><a href="structstepgen__ch__t.html#ae3006897902ef1979438ea8f127b8188">stepgen_ch_t::task_tick</a></div><div class="ttdeci">uint64_t task_tick</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:61</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2da4f132c3555be9287960b2ca72552ca11"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da4f132c3555be9287960b2ca72552ca11">STEPGEN_MSG_WATCHDOG_SETUP</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:29</div></div>
<div class="ttc" id="structstepgen__ch__t_html_ad5570160009847b90e3bf8e14d303b0a"><div class="ttname"><a href="structstepgen__ch__t.html#ad5570160009847b90e3bf8e14d303b0a">stepgen_ch_t::pos</a></div><div class="ttdeci">int32_t pos</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:54</div></div>
<div class="ttc" id="mod__stepgen_8h_html_aea55c383984191341be13404a7e73bb7"><div class="ttname"><a href="mod__stepgen_8h.html#aea55c383984191341be13404a7e73bb7">stepgen_msg_recv</a></div><div class="ttdeci">int8_t volatile stepgen_msg_recv(uint8_t type, uint8_t *msg, uint8_t length)</div><div class="ttdoc">&quot;message received&quot; callback </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:386</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html"><div class="ttname"><a href="structstepgen__fifo__slot__t.html">stepgen_fifo_slot_t</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:36</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2dadeb64ac38a4aa0b61f5a30b0ce10b248"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2dadeb64ac38a4aa0b61f5a30b0ce10b248">STEPGEN_MSG_PIN_SETUP</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:23</div></div>
<div class="ttc" id="mod__msg_8h_html"><div class="ttname"><a href="mod__msg_8h.html">mod_msg.h</a></div><div class="ttdoc">ARM-ARISC message control module header. </div></div>
<div class="ttc" id="mod__stepgen_8h_html_a328fc56e89d3be7b314f773c35206ef3"><div class="ttname"><a href="mod__stepgen_8h.html#a328fc56e89d3be7b314f773c35206ef3">stepgen_module_init</a></div><div class="ttdeci">void stepgen_module_init()</div><div class="ttdoc">module init </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:125</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a1987baf2be40fdf44f84356533516c17"><div class="ttname"><a href="mod__stepgen_8h.html#a1987baf2be40fdf44f84356533516c17">stepgen_abort</a></div><div class="ttdeci">void stepgen_abort(uint8_t c, uint8_t all)</div><div class="ttdoc">abort all tasks for the selected channel </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:323</div></div>
<div class="ttc" id="mod__stepgen_8h_html_ad07cf3fa21b467202e728256fabe57c7"><div class="ttname"><a href="mod__stepgen_8h.html#ad07cf3fa21b467202e728256fabe57c7">stepgen_module_base_thread</a></div><div class="ttdeci">void stepgen_module_base_thread()</div><div class="ttdoc">module base thread </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:143</div></div>
<div class="ttc" id="structstepgen__ch__t_html_a07968236195cd41e44af78d15a2449e8"><div class="ttname"><a href="structstepgen__ch__t.html#a07968236195cd41e44af78d15a2449e8">stepgen_ch_t::task_slot</a></div><div class="ttdeci">uint8_t task_slot</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:60</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2da1277c6bab97058bd73148093308e7531"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da1277c6bab97058bd73148093308e7531">STEPGEN_MSG_TASK_UPDATE</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:25</div></div>
<div class="ttc" id="mod__timer_8h_html"><div class="ttname"><a href="mod__timer_8h.html">mod_timer.h</a></div><div class="ttdoc">system timer control module header </div></div>
<div class="ttc" id="structstepgen__ch__t_html_af54eeb7ea4d11bcc974ca9d981e7a331"><div class="ttname"><a href="structstepgen__ch__t.html#af54eeb7ea4d11bcc974ca9d981e7a331">stepgen_ch_t::abort</a></div><div class="ttdeci">uint8_t abort</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:56</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a76c18f23772eec1d9d3fb9dd2119487c"><div class="ttname"><a href="mod__stepgen_8h.html#a76c18f23772eec1d9d3fb9dd2119487c">stepgen_pin_setup</a></div><div class="ttdeci">void stepgen_pin_setup(uint8_t c, uint8_t type, uint8_t port, uint8_t pin, uint8_t invert)</div><div class="ttdoc">setup GPIO pin for the selected channel </div><div class="ttdef"><b>Definition:</b> mod_stepgen.c:219</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a1b6853f8439c3d10f952fe92e18100e6"><div class="ttname"><a href="mod__stepgen_8h.html#a1b6853f8439c3d10f952fe92e18100e6">STEPGEN_FIFO_SIZE</a></div><div class="ttdeci">#define STEPGEN_FIFO_SIZE</div><div class="ttdoc">size of channel&amp;#39;s fifo buffer </div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:18</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html_af990eddaa908d8e2a6b5567989eb2e58"><div class="ttname"><a href="structstepgen__fifo__slot__t.html#af990eddaa908d8e2a6b5567989eb2e58">stepgen_fifo_slot_t::pulses</a></div><div class="ttdeci">uint32_t pulses</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:39</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html_a77a0732fe2b2951b46e9135073110348"><div class="ttname"><a href="structstepgen__fifo__slot__t.html#a77a0732fe2b2951b46e9135073110348">stepgen_fifo_slot_t::high_ticks</a></div><div class="ttdeci">uint32_t high_ticks</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:41</div></div>
<div class="ttc" id="structstepgen__ch__t_html_a4d1dc7cb0fb7365b938b0b4083850610"><div class="ttname"><a href="structstepgen__ch__t.html#a4d1dc7cb0fb7365b938b0b4083850610">stepgen_ch_t::abort_tick</a></div><div class="ttdeci">uint64_t abort_tick</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:57</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html_a2c38447b8253c8df855e3131c95941a1"><div class="ttname"><a href="structstepgen__fifo__slot__t.html#a2c38447b8253c8df855e3131c95941a1">stepgen_fifo_slot_t::tick</a></div><div class="ttdeci">uint64_t tick</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:42</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2daadd2b95fe787b4566197d0077ce8971b"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2daadd2b95fe787b4566197d0077ce8971b">STEPGEN_MSG_POS_SET</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:28</div></div>
<div class="ttc" id="structstepgen__ch__t_html_a75b4ea125202228ed86690ae46a778c6"><div class="ttname"><a href="structstepgen__ch__t.html#a75b4ea125202228ed86690ae46a778c6">stepgen_ch_t::task_infinite</a></div><div class="ttdeci">uint8_t task_infinite</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:59</div></div>
<div class="ttc" id="structstepgen__ch__t_html"><div class="ttname"><a href="structstepgen__ch__t.html">stepgen_ch_t</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:46</div></div>
<div class="ttc" id="mod__stepgen_8h_html_a0411cd49bb5b71852cecd93bcbf0ca2da27323544b34707df604e85d578e67790"><div class="ttname"><a href="mod__stepgen_8h.html#a0411cd49bb5b71852cecd93bcbf0ca2da27323544b34707df604e85d578e67790">STEPGEN_MSG_CNT</a></div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:30</div></div>
<div class="ttc" id="structstepgen__fifo__slot__t_html_a20e782ffc21797e1e912ed0a98ada5c8"><div class="ttname"><a href="structstepgen__fifo__slot__t.html#a20e782ffc21797e1e912ed0a98ada5c8">stepgen_fifo_slot_t::low_ticks</a></div><div class="ttdeci">uint32_t low_ticks</div><div class="ttdef"><b>Definition:</b> mod_stepgen.h:40</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="mod__stepgen_8h.html">mod_stepgen.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
